package per.jdz.demo;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import per.jdz.demo.service.PumpRecordService;

import javax.annotation.Resource;

@SpringBootApplication
public class DemoApplication implements CommandLineRunner {

	@Resource
	private PumpRecordService pumpRecordService;

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

	@Override
	public void run(String... args) {
//		ModbusTCPClient.connectAndProcessData(pumpRecordService);
	}
}
